package com.adou.common.mapper;

import com.adou.common.model.FlowDirection;
import com.adou.common.model.FlowTask;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface FlowDesignMapper {

    List<Map<String, Object>> queryNodeList(@Param("fid") Long fid);

    List<Map<String, Object>> queryLineList(@Param("fid") Long fid);

    List<Map<String, Object>> queryAreaList(@Param("fid") Long fid);

    int insertNode(Map<String, Object> map);

    int insertLine(Map<String, Object> map);

    int insertArea(Map<String, Object> map);

    int insertFlowTask(FlowTask flowTask);

    int insertFlowDirection(FlowDirection flowDirection);

    int deleteArea(@Param("fid") Long fid);

    FlowTask queryFlowTaskByNodeId(String nodeId);

}
